function [alpha,beta] = lpcvdGetMode(h,Mode)
% assert(mod(length(h),2)==0);
if(size(h,1)==1 && size(h,2)~=1)
    h = h';
end
if nargin == 1
    Mode = length(h);
end
dx = (2*pi/length(h));
x = -pi:dx:(pi-dx);
h = h-mean(h)*ones(size(h));
alpha = (2*pi/length(h))*(1/sqrt(pi))*sin((1:Mode)'*x)*h;
beta = (2*pi/length(h))*(1/sqrt(pi))*cos((1:Mode)'*x)*h;